package cn.bincker.mybatis.encrypt.reflection;

import cn.bincker.mybatis.encrypt.reflection.factory.interceptor.EncryptEntity;

public class ProxyUtils {
    public static Class<?> getTargetClass(Object target){
        if (target == null) return null;
        if (target instanceof EncryptEntity){
            return ((EncryptEntity) target).$getTargetClass();
        }
        return target.getClass();
    }
}
